<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j"
    template="/layout/admin_template.xhtml">

    <ui:define name="body">
    	<h:form>
    		<rich:panel>
    			<f:facet name="header"></f:facet>
	    		<h:commandButton value="#{messages.back_msg}" action="users" immediate="true"/>
	    		<h:panelGroup id="user_panel">
			    	<rich:tabPanel switchType="client" selectedTab="tab_acc">
			   			<rich:tab name="tab_acc" label="#{messages.account_data_msg}" >
					    	<h:form id="my_account_form">
					    		<table>
					    			<tr>
					    				<td>
					    					<table cellpadding="5" cellspacing="5">
									    		<tr>
									    			<td>
								    					<h:outputText value="#{messages.picture_msg}" />
									    			</td>
									    			<td>
									    				<h:panelGroup id="thumb_img" rendered="#{not empty kUserManager.img}">
															<img id="thumb_" src="/#{kInitParam.imgPath}/av_#{kUserManager.img.userId}/#{kUserManager.img.thumb}" />
														</h:panelGroup>
														<h:graphicImage value="/img/no-img.gif" rendered="#{empty kUserManager.img}"/>
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.type_msg}" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.userType.message}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.kadrons_msg}" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.kadrons}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.k_name_msg}" />
									    				<h:outputText value="*" styleClass="m" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.username}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.email_msg}" />
									    				<h:outputText value="*" styleClass="m" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.email}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.nickname_msg}" />
									    				<h:outputText value="*" styleClass="m" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.nickname}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.firstname_msg}" />
										    			<h:outputText value="*" styleClass="m" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.firstname}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.lastname_msg}" />
									    				<h:outputText value="*" styleClass="m" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.lastname}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.address_msg}" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.address}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.tel_msg}" />
									    				<h:outputText value="*" styleClass="m" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.tel}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.mob_msg}" />
									    				<h:outputText value="*" styleClass="m" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.mob}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.birthday_msg}" />
									    				<h:outputText value="*" styleClass="m" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.birthday}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.language_msg}" />
									    				<h:outputText value="*" styleClass="m" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.lang}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.newsletter_msg}" />
									    			</td>
									    			<td>
									    				<h:selectBooleanCheckbox value="#{kUserManager.user.newsletter}" disabled="true"/>
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.desc_msg}" />
									    			</td>
									    			<td>
									    				<h:outputText value="#{kUserManager.user.desc}" />
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.name_visible_msg}" />
									    			</td>
									    			<td>
									    				<h:selectBooleanCheckbox value="#{kUserManager.user.nameVisible}" disabled="true"/>
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.email_visible_msg}" />
									    			</td>
									    			<td>
									    				<h:selectBooleanCheckbox value="#{kUserManager.user.emailVisible}" disabled="true"/>
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.birthday_visible_msg}" />
									    			</td>
									    			<td>
									    				<h:selectBooleanCheckbox value="#{kUserManager.user.birthdayVisible}" disabled="true"/>
									    			</td>
									    		</tr>
									    		<tr>
									    			<td>
									    				<h:outputText value="#{messages.tel_visible_msg}" />
									    			</td>
									    			<td>
									    				<h:selectBooleanCheckbox value="#{kUserManager.user.telVisible}" disabled="true"/>
									    			</td>
									    		</tr>
									   		</table>
					    				</td>
						    			<td valign="top">
						    				 <h:commandButton action="#{kUserManager.orders()}" value="#{messages.user_orders_msg}" rendered="#{identity.loggedIn}" immediate="true"/>
						    			</td>
					    			</tr>
					    		</table>
					    	</h:form>
			    		</rich:tab>    		
			    	</rich:tabPanel>
		    	</h:panelGroup>
    		</rich:panel>
    	</h:form>
    </ui:define>
</ui:composition>